/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package coffeerush.organizer;

import java.io.IOException;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

/**
 *
 * @author Ryzhko Oleg
 */
public class HomePage extends Application {
    
    @Override
    public void start(Stage primaryStage) throws IOException {
        FXMLLoader loader = new FXMLLoader();
        Parent root = loader.load(getClass().getResource("gui/StartPage.fxml"));
        primaryStage = new Stage(StageStyle.TRANSPARENT);
        primaryStage.setTitle("CoffeeRush Organizer");
        primaryStage.setScene(new Scene(root, 900, 659));
        primaryStage.setResizable(false);
        primaryStage.show();
    }
    
    public static void main(String[] args) {
        //TODO: Load Preferences from XML file
        launch(args);
    }
}
